<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {
	function __construct(){
		parent::__construct();
		log_message(ETS_INFO, '### goto V:/admin/main->construct');
		$this->load->library ( 'mylang' );
		$this->mylang->load('admin');
		$this->load->library ( 'authority' );
		$this->load->library ('mysession');
	}
	
	public function index()
	{
		log_message(ETS_INFO, '### C:/admin/index->index()');
		$this->authority->filter(SESSION_KEY_USER_ROLE_ADMIN);

		log_message(ETS_INFO, '### goto V:/admin/main.php');
		$this->load->view('admin/main.php');
	}

	public function main_top()
	{
		log_message(ETS_INFO, '### C:/admin/index->main_top()');
		$data = array(
				'username' => $this->mysession->getUserName(),
				'varname' => '超级管理员'
		);
		log_message(ETS_INFO, '### goto V:/admin/main_top.php');
		$this->load->view('admin/main_top.php', $data);
	}
	
	public function main_left()
	{
		log_message(ETS_INFO, '### C:/admin/index->main_left()');
		$data = array(
				'curMenuType' => 'personal'
		);
		log_message(ETS_INFO, '### goto V:/admin/main_left.php');
		$this->load->view('admin/main_left.php', $data);
		
	}
	
	public function main_center()
	{
		$this->load->view('admin/main_center.php');
	}
	
	public function main_right()
	{
		$this->load->view('admin/main_right.php');
	}
	
	public function main_foot()
	{
		$this->load->view('admin/main_foot.php');
	}
}